package com.example.demo.component.k8s.bean;

import io.kubernetes.client.openapi.models.V1Pod;
import io.kubernetes.client.openapi.models.V1PodCondition;

import java.util.List;

/**
 * @ClassName pod
 * @Description
 * @date 2022/11/9 13:33
 * @Author yanceysong
 * @Version 1.0
 */
public class pod {
    private V1Pod v1Pod;
    //pod名字
    private String name;
    //pod容器id，暂时只允许一个pod只有一个容器
    private String container_id;
    //容器阶段
    private String phase;
    //pod的ip
    private String pod_ip;
    //主机的ip
    private String host_ip;
    //pod的事件
    private List<V1PodCondition> events;
    //容器名
    private String container_name;
    //所在的命名空间
    private String namespace;
    private Integer restart_count;
    private String node;
    private String image_name;
    private String image_version;

    public V1Pod getV1Pod() {
        return v1Pod;
    }

    public void setV1Pod(V1Pod v1Pod) {
        this.v1Pod = v1Pod;
    }

    public String getImage_name() {
        return image_name;
    }

    public void setImage_name(String image_name) {
        this.image_name = image_name;
    }

    public String getImage_version() {
        return image_version;
    }

    public void setImage_version(String image_version) {
        this.image_version = image_version;
    }

    public Integer getRestart_count() {
        return restart_count;
    }

    public void setRestart_count(Integer restart_count) {
        this.restart_count = restart_count;
    }

    public String getNode() {
        return node;
    }

    public void setNode(String node) {
        this.node = node;
    }

    public String getNamespace() {
        return namespace;
    }

    public void setNamespace(String namespace) {
        this.namespace = namespace;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContainer_id() {
        return container_id;
    }

    public void setContainer_id(String container_id) {
        this.container_id = container_id;
    }

    public String getPhase() {
        return phase;
    }

    public void setPhase(String phase) {
        this.phase = phase;
    }

    public String getPod_ip() {
        return pod_ip;
    }

    public void setPod_ip(String pod_ip) {
        this.pod_ip = pod_ip;
    }

    public String getHost_ip() {
        return host_ip;
    }

    public void setHost_ip(String host_ip) {
        this.host_ip = host_ip;
    }

    public List<V1PodCondition> getEvents() {
        return events;
    }

    public void setEvents(List<V1PodCondition> events) {
        this.events = events;
    }

    public String getContainer_name() {
        return container_name;
    }

    public void setContainer_name(String container_name) {
        this.container_name = container_name;
    }

    public String toString() {
        return this.image_version;
    }

}
